mtd: nand: pxa3xx-nand: fix random command timeouts
authorOfer Heifetz <[email protected]>
Wed, 29 Aug 2018 08:56:04 +0000 (11:56 +0300)
committerStefan Roese <[email protected]>
Wed, 19 Sep 2018 07:00:39 +0000 (09:00 +0200)
commitcd11b2b457bb8aa5e0e72c4d90df1c7995c738b4
tree4815b31814637d891826677536ef99ef2a1790b4
parent658999244a0446a32301bc34c8fa53f1a3f05594
mtd: nand: pxa3xx-nand: fix random command timeouts

When 2 commands are submitted in a row, and the second is very quick,
the completion of the second command might never come. This happens
especially if the second command is quick, such as a status read
after an erase

This patch is taken from Linux:
'commit 21fc0ef9652f'
("mtd: nand: pxa3xx-nand: fix random command timeouts")

Signed-off-by: Chris Packham <[email protected]>
Signed-off-by: Ofer Heifetz <[email protected]>
Reviewed-by: Igal Liberman <[email protected]>
Cc: Stefan Roese <[email protected]>
Cc: Simon Glass <[email protected]>
Signed-off-by: Stefan Roese <[email protected]>
drivers/mtd/nand/pxa3xx_nand.c